namespace ColladaDotNet.SimpleMesh
{
	public struct Triangle
	{
		public int Index0;
		public int Index1;
		public int Index2;
		public int this[int i]
		{
			get
			{
				switch (i)
				{
					case 0:
						return Index0;
					case 1:
						return Index1;
					case 2:
						return Index2;
				}
				throw new System.ArgumentException();
			}
			set
			{
				switch (i)
				{
					case 0:
						Index0 = value;
						break;
					case 1:
						Index1 = value;
						break;
					case 2:
						Index2 = value;
						break;
					default:
						throw new System.ArgumentException();
						break;
				}
			}
		}
		public static Triangle Create(int i0, int i1, int i2)
		{
			return new Triangle { Index0 = i0, Index1 = i1, Index2 = i2 };
		}
	}
}